package demo1;

public class Test {
    public static void main(String[] args) {
        Animal animal = null;
        animal.getAge();
    }
    public static void main3(String[] args) {
        System.out.println(10/0);
    }
    public static void main2(String[] args) {
        int[] arr = {1,2,3};
        System.out.println(arr[10]);
    }

    public static void main1(String[] args)throws CloneNotSupportedException {
        System.out.println();
        Animal animal = new Animal("小花",5);
        Animal animal2 = (Animal) animal.clone();
    }
}
